﻿<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:cg="http://roblevine.co.uk/Namespaces/ConfigGen/1/0/">
  <appSettings>
    <add key="EnvironmentName" value="[%EnvironmentName%]" />
  </appSettings>
  
  <system.web>
    <customErrors cg:applyWhen="CustomErrorMode == Off" 
                  mode="[%CustomErrorMode%]" />
    
    <customErrors cg:applyWhen="CustomErrorMode != Off" 
                  mode="[%CustomErrorMode%]" 
                  defaultRedirect="GenericError.htm">
      <error statusCode="500" redirect="InternalError.htm" />
    </customErrors>
  </system.web>

</configuration>






